<#assign base=request.contextPath />
<!DOCTYPE html>
<div class="row">
	<div class="col-md-12 col-sm-12 col-xs-12">
		<div class="x_panel">
			<div class="x_title">
				<h2>详情 <small></small></h2>
				<div class="clearfix"></div>
			</div>
			<div class="x_content">
				<br/>
				
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">票面编号 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<h2>${(obj.ticketNo)!''}</h2>
                        </div>
					</div>
					<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">用户 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<h2>${(obj.userId.userName)!''}</h2>
                        </div>
					</div>
						<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">添加票时间 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<h2>${(obj.addTime)!''}</h2>
                        </div>
					</div>
							<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">购票时间 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<h2>${(obj.buyTime)!''}</h2>
                        </div>
					</div>
					
								<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">使用时间 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        <#if (obj.ticketState>=2)>
                        	<h2>${(obj.useTime)!''}</h2>
                        </#if>
                        <#if (obj.ticketState<2)>
                        	<h2>未使用.....</h2>
                        </#if>
                        </div>
					</div>
				
									<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">状态 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        <#if (obj.ticketState==1)>
                        	<h2>已售</h2>
                        </#if>
                        <#if (obj.ticketState==2)>
                        	<h2>已使用</h2>
                        </#if>
                        <#if (obj.ticketState==3)>
                        	<h2>已过期</h2>
                        </#if>
                          <#if (obj.ticketState==4)>
                        	<h2>已退票</h2>
                        </#if>
                        </div>
					</div>
					
									<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">类型 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                     
                        	<h2>${(obj.ticketCategory.name)!''}</h2>
                        </div>
					</div>
					
											<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">用户等级 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                     
                        	<h2>${(obj.userGrade)!''}</h2>
                        </div>
					</div>
												<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">折扣 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        	<h2>${(obj.discount)!''}</h2>
                        </div>
					</div>
					<#if  (obj.ticketState==4)>								<br>
					<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">退票时间 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        
                        	<h2>${(obj.effectiveTime)!''}</h2>
                       
                        </div>
					</div>
				 </#if>
				 <br>
				 		<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">本票截止日期 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        
                        	<h2>${(obj.expirationDate)!''}</h2>
                       
                        </div>
					</div>
						 <br>
				 		<div class="form-group">
						<label class="control-label col-md-3 col-sm-3 col-xs-12" for="first-name">票价 <span class="required">*</span>
                        </label>
                        <div class="col-md-6 col-sm-6 col-xs-12">
                        
                        	<h2>${(obj.price)!''}元</h2>
                       
                        </div>
					</div>
					
										<div class="ln_solid"></div>
					<div class="form-group">
						<div class="col-md-6 col-sm-6 col-xs-12 col-md-offset-3">
						
							<button type="button" class="btn btn-primary" id="goBack">返回</button>
						</div>
					</div>
			</div>
		</div>
	</div>
</div>

<script type="text/javascript">
$(function(){
	$("#goBack").click(function() {
		$("#main_content").load('${base}/gx/sysTicket/list');	        
    });
})
</script>